package com.runen.wnhz.runen.di.module;

import com.runen.wnhz.runen.presenter.Contart.CourseDetailsContart;
import com.runen.wnhz.runen.presenter.model.CourseDetailsModel;
import com.runen.wnhz.runen.presenter.model.CourseModel;
import com.runen.wnhz.runen.service.MajorApi;

import dagger.Module;
import dagger.Provides;

/**
 * NAME：陈璐宇
 * DATE：2018/5/5
 * DESCRIBE：
 */

@Module
public class CourseDetailsModule {


    public CourseDetailsContart.View view;

    public CourseDetailsModule(CourseDetailsContart.View view) {
        this.view = view;
    }

    @Provides
    public CourseDetailsContart.View provideView() {
        return view;
    }


    @Provides
    public CourseDetailsModel provideHomedel(MajorApi majorApi) {
        return new CourseDetailsModel(majorApi);
    }
}
